/*
* 四川生学教育科技有限公司
* Copyright (c) 2015-2025 Founder Ltd. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Founder. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the agreements
* you entered into with Founder.
*
*/
package cn.demo.zookeeper.lock.ephemeral_sequential;

/**
 * @author WUANG (wa@sxw.cn)
 * @description LockNode
 * @date 2018/11/2 11:10
 * @slogon 站在巨人的肩膀上
 * @since 2.0.0
 */
public class LockNode implements Comparable{

    private String name;

    public LockNode(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int compareTo(Object o) {
        LockNode cp = (LockNode)o;
        return this.name.compareTo(cp.getName());
    }

}
